class SearchFriendRenderer extends eui.ItemRenderer {
    private searchGroup:eui.Group;
    private searchCell1:eui.Image;
    private smallCircleImage1:eui.Image;
    private friendName:eui.Label;
    private searchAddImage:eui.Image;
    

    public constructor(){
        super();
        this.searchGroup=new eui.Group();
        this.searchCell1=new eui.Image;
        this.smallCircleImage1=new eui.Image();
        this.friendName=new eui.Label();
        this.searchAddImage=new eui.Image();

        this.searchGroup.addChild(this.searchCell1);
        this.searchGroup.addChild(this.smallCircleImage1);
        this.searchGroup.addChild(this.friendName);
        this.searchGroup.addChild(this.searchAddImage);
        this.addChild(this.searchGroup);
        this.searchAddImage.addEventListener(egret.TouchEvent.TOUCH_TAP,this.Onclick,this);
    }

    protected dataChanged():void{
        //显示数据中的 label 值
        this.smallCircleImage1.source="resource/assets/FriendsWin/小圆.png";
        this.smallCircleImage1.x=42;
        this.smallCircleImage1.y=36;
        this.friendName.text=this.data.name;
        this.friendName.textColor=0x0F2540;
        this.friendName.fontFamily="Alibaba PuHuiTi";
        this.friendName.size=26;
        this.friendName.x=128;
        this.friendName.y=54;
        this.searchAddImage.source="resource/assets/FriendsWin/SearchFriend//添加.png";
        this.searchAddImage.x=605;
        this.searchAddImage.y=50;
        this.searchCell1.source="resource/assets/FriendsWin/SearchFriend/单元格.png";
        this.searchCell1.x=22;
        this.searchCell1.y=12;
    }

    private Onclick():void{
    }
}